
file(GLOB SRC_LISTS "src/*.cpp")# 打包对应文件进SRC_LISTS变量

add_library(MYMATH STATIC ${SRC_LISTS}) #拿这里面的文件构成静态库

target_include_directories(MYMATH PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)# cmake执行的此时命令所在的目录（静态库组成还公有的目录）



set_target_properties(MYMATH PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) 



target_include_directories(${SHARED_LIB}
    PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/${JSONCPP_INCLUDE_DIR}>
        $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
